home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
tclMotif-1.4
/
tests
/
extra_child.test
< prev
next >
Wrap
Text File
|
1995-06-29
|
4KB
|
178 lines
if {[string compare test [info procs test]] == 1} then \
{source defs}
# set VERBOSE 1
# set INTERACTIVE 1
#############
# starts here
#############
xtAppInitialize -class List
. setValues -allowShellResize true
xmRowColumn .rc managed
#################################
# additional message box children
#################################
xmMessageBox .rc.mb
test extra-1.1 {OK message box child} {
catch {.rc.mb.OK unmanageChild}
} {0}
test extra-1.2 {Cancel message box child} {
catch {.rc.mb.Cancel unmanageChild}
} {0}
test extra-1.3 {Help message box child} {
catch {.rc.mb.Help unmanageChild}
} {0}
test extra-1.4 {Message message box child} {
catch {.rc.mb.Message unmanageChild}
} {0}
test extra-1.5 {Separator message box child} {
catch {.rc.mb.Separator unmanageChild}
} {0}
test extra-1.6 {Symbol message box child} {
catch {.rc.mb.Symbol unmanageChild}
} {0}
###################################
# additional selection box children
###################################
xmSelectionBox .rc.sb
test extra-2.1 {OK selection box child} {
catch {.rc.sb.OK unmanageChild}
} {0}
test extra-2.2 {Cancel selection box child} {
catch {.rc.sb.Cancel unmanageChild}
} {0}
test extra-2.3 {Help selection box child} {
catch {.rc.sb.Help unmanageChild}
} {0}
test extra-2.4 {Apply selection box child} {
catch {.rc.sb.Apply unmanageChild}
} {0}
test extra-2.5 {ItemsList selection box child} {
catch {.rc.sb.ItemsList unmanageChild}
} {0}
test extra-2.6 {Items selection box child} {
catch {.rc.sb.Items unmanageChild}
} {0}
test extra-2.7 {Selection selection box child} {
catch {.rc.sb.Selection unmanageChild}
} {0}
test extra-2.8 {Separator selection box child} {
catch {.rc.sb.Separator unmanageChild}
} {0}
test extra-2.9 {Text selection box child} {
catch {.rc.sb.Text unmanageChild}
} {0}
########################################
# additional file selection box children
########################################
xmFileSelectionBox .rc.fsb
test extra-2.1 {OK file selection box child} {
catch {.rc.fsb.OK unmanageChild}
} {0}
test extra-2.2 {Cancel file selection box child} {
catch {.rc.fsb.Cancel unmanageChild}
} {0}
test extra-2.3 {Help file selection box child} {
catch {.rc.fsb.Help unmanageChild}
} {0}
test extra-2.4 {Apply file selection box child} {
catch {.rc.fsb.Apply unmanageChild}
} {0}
test extra-2.5 {ItemsList file selection box child} {
catch {.rc.fsb.ItemsList unmanageChild}
} {0}
test extra-2.6 {Items file selection box child} {
catch {.rc.fsb.Items unmanageChild}
} {0}
test extra-2.7 {Selection file selection box child} {
catch {.rc.fsb.Selection unmanageChild}
} {0}
test extra-2.8 {Separator file selection box child} {
catch {.rc.fsb.Separator unmanageChild}
} {0}
test extra-2.9 {Text file selection box child} {
catch {.rc.fsb.Text unmanageChild}
} {0}
test extra-2.10 {Dir file selection box child} {
catch {.rc.fsb.Dir unmanageChild}
} {0}
test extra-2.11 {DirList file selection box child} {
catch {.rc.fsb.DirList unmanageChild}
} {0}
test extra-2.12 {FilterLabel file selection box child} {
catch {.rc.fsb.FilterLabel unmanageChild}
} {0}
#####################################
# additional scrolled window children
#####################################
xmScrolledWindow .rc.sw \
-visualPolicy constant \
-scrollingPolicy automatic
test extra-4.1 {HorScrollBar scrolled window child} {
catch {.rc.sw.HorScrollBar unmanageChild}
} {0}
test extra-4.2 {VertScrollBar scrolled window child} {
catch {.rc.sw.VertScrollBar unmanageChild}
} {0}
test extra-4.3 {ClipWindow scrolled window child} {
catch {.rc.sw.ClipWindow unmanageChild}
} {0}
#############
# Finish up #
#############
if { ! $INTERACTIVE} {
.rc.mb destroyWidget
.rc.sb destroyWidget
.rc.fsb destroyWidget
.rc.sw destroyWidget
.rc destroyWidget
} else {
. mainLoop
}